#TODO 退出整个循环
i = 0
while i < 7: #需求: 循环到3结束循环
 if i == 3:
     break
 print(i)
 i += 1


